home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FM Towns: Software Contest 3
/
FM Towns Software Contest 3.iso
/
exp
/
video_t
/
no1
/
c_sorse
/
end2.c
< prev
next >
Wrap
Text File
|
1994-01-07
|
2KB
|
67 lines
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <winb.h>
#include <te.h>
#include <fntb.h>
#include <gui.h>
int Dialog_end = -1 ;
int DButton_end5 = -1 ;
int _001DButton_end = -1 ;
int _001Message_end11 = -1 ;
int Message_end11 = -1 ;
int _002Message_end11 = -1 ;
extern int backid ;
extern int Dia_edit ;
extern int Dialog_menu ;
extern int Text ;
/* initDataEND:DButton_end5:MJ_DBUTTONL40の呼び出し関数 */
int end_on(kobj, messId, argc, pev, trigger)
int kobj ;
int messId ;
int argc ;
EVENT *pev ;
int trigger ;
{
MMI_SendMessage(Dialog_end,MM_ERASE,0) ;
MMI_SendMessage(Dialog_end,MM_DETACH,0) ;
FDG_RecovCurDir(); /* ディレクト復元 */
MMI_SendMessage(MMI_GetBaseObj(),MM_ERASE,0) ;
MMI_SendMessage(MMI_GetBaseObj(), MM_DETACH, 0) ;
exitFunc();
return NOERR ;
}
/* initDataEND:_001DButton_end:MJ_DBUTTONL40の呼び出し関数 */
int end_end(kobj, messId, argc, pev, trigger)
int kobj ;
int messId ;
int argc ;
EVENT *pev ;
int trigger ;
{
MMI_SendMessage(Dialog_end,MM_ERASE,0) ;
MMI_SendMessage(Dialog_end,MM_DETACH,0) ;
/* メニューを選択可とします。 */
MTL_resetAtrObj(Dialog_menu, ~MS_DSPONLYL40) ;
MTL_resetAtrObj(Dia_edit, ~MS_DSPONLYL40) ;
MTL_resetAtrObj(backid, ~MS_DSPONLYL40) ;
return NOERR ;
}
int l_end()
{
/* 背景を選択不可とします。*/
MTL_setAtrObj(backid, MS_DSPONLYL40) ;
MTL_setAtrObj(Dialog_menu, MS_DSPONLYL40) ;
MTL_setAtrObj(Dia_edit, MS_DSPONLYL40) ;
MMI_SendMessage(Dialog_end,MM_ATTACH,1,MMI_GetBaseObj()) ;
MMI_SendMessage(Dialog_end, MM_SHOW, 0) ;
return NOERR ;
}